<?php

namespace app\common\model;


class VideoChapter extends BaseModel
{

    // 表名
    protected $name = 'video_chapter';


    // 追加属性
    protected $append = [

    ];


    public function video()
    {
        return $this->belongsTo('Video', 'video_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }


    public function channel()
    {
        return $this->belongsTo('app\common\model\video\Channel', 'channel_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
